package homework36;

public class LightCommand extends Command{
    ReceiveLight receiveLight = new ReceiveLight();

    @Override
    public void execute() {
        System.out.println("打开点灯开关...");
        receiveLight.light();
    }
}

class ReceiveLight {
    public void light(){
        System.out.println("电灯亮...");
    }
}
